#include "sound/soundsystemproxy.h"

namespace cricket {

	bool SoundSystemProxy::EnumeratePlaybackDevices(
		SoundDeviceLocatorList *devices) {
			return wrapped_ ? wrapped_->EnumeratePlaybackDevices(devices) : false;
	}

	bool SoundSystemProxy::EnumerateCaptureDevices(
		SoundDeviceLocatorList *devices) {
			return wrapped_ ? wrapped_->EnumerateCaptureDevices(devices) : false;
	}

	bool SoundSystemProxy::GetDefaultPlaybackDevice(
		SoundDeviceLocator **device) {
			return wrapped_ ? wrapped_->GetDefaultPlaybackDevice(device) : false;
	}

	bool SoundSystemProxy::GetDefaultCaptureDevice(
		SoundDeviceLocator **device) {
			return wrapped_ ? wrapped_->GetDefaultCaptureDevice(device) : false;
	}

	SoundOutputStreamInterface *SoundSystemProxy::OpenPlaybackDevice(
		const SoundDeviceLocator *device,
		const OpenParams &params) {
			return wrapped_ ? wrapped_->OpenPlaybackDevice(device, params) : NULL;
	}

	SoundInputStreamInterface *SoundSystemProxy::OpenCaptureDevice(
		const SoundDeviceLocator *device,
		const OpenParams &params) {
			return wrapped_ ? wrapped_->OpenCaptureDevice(device, params) : NULL;
	}

}  // namespace cricket
